package com.spring.appservice.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.appservice.web.mainShowModel.CourseOpenDetail;
import com.spring.appservice.web.mainShowModel.CourseTypeProduct;
import com.spring.appservice.web.mainShowModel.Journal;
import com.spring.appservice.web.mainShowModel.Packages;
import com.spring.appservice.web.mainShowModel.UserPackage;
import com.spring.appservice.web.model.Activity;
import com.spring.appservice.web.model.News;

public interface MainShowMapper {

	List<Map<String, Object>> getCoursesList(HashMap<String, Object> hm);
	List<Map<String, Object>> getTeachersList(HashMap<String, Object> hm);
	List<Map<String, Object>> getBannersList(HashMap<String, Object> hm);
	List<Map<String, Object>> getNearCoursesList(HashMap<String, Object> hm);
	List<Map<String, Object>> getNearMSJournalList(String familyID);
	
	List<Activity> getActivitiesList(HashMap<String, Object> hm);
	List<News> getNewsList(HashMap<String, Object> hm);
	
	
	List<Map<String, Object>> getProductShowDetail(HashMap<String, Object> hm);
	List<Map<String, Object>> getProductShow(HashMap<String, Object> hm);
	CourseTypeProduct getCourseProduct(HashMap<String, Object> hm);
	
	Map<String, Object> getNearestCourseAppoint(HashMap<String, Object> hm);
	Map<String, Object> getCourseQuantity(HashMap<String, Object> hm);
	List<Map<String, Object>> getPackageList(HashMap<String, Object> hm);
	List<Map<String, Object>> getRechargeList(HashMap<String, Object> hm);
	
	List<Journal> getJournalList(HashMap<String, Object> hm);
	int getJournalCount(HashMap<String, Object> hm);
	List<Packages> freePackage(HashMap<String, Object> hm);
	
	int checkAppointment(HashMap<String, Object> hm);
	int insertAppointment(HashMap<String, Object> hm);
	
	List<Map<String, Object>> myCourseList(HashMap<String, Object> hm);
	int myCourseListCount(HashMap<String, Object> hm);
	
	CourseOpenDetail getCourseDetail(HashMap<String, Object> hm);
	List<Map<String, Object>> getCourseDetailFile(HashMap<String, Object> hm);
	List<Map<String, Object>> getCourseTeacherComment(HashMap<String, Object> hm);
	int getCourseStatus(HashMap<String, Object> hm);
	
	UserPackage getPackageDetail(HashMap<String, Object> hm);
	List<Map<String, Object>> getOrderDetail(HashMap<String, Object> hm);
	List<Map<String, Object>> getCourseComment(HashMap<String, Object> hm);
	
	String getDetailIDByAppointment(HashMap<String, Object> hm);	
	int insertCommentScore(HashMap<String, Object> hm);	
	
	int feedback(HashMap<String, Object> hm);

	
	int getMySpaceCount(HashMap<String, Object> hm);
	int insertMySpace(HashMap<String, Object> hm);
	int udpateMySpace(HashMap<String, Object> hm);
	
	List<Map<String, Object>>  getMySpace(HashMap<String, Object> hm);
	int insertJournal(HashMap<String, Object> hm);
	
	List<Map<String, Object>>  getAppointmentList(HashMap<String, Object> hm);
	Integer  getAppointmentListCount(HashMap<String, Object> hm);
	
	int teacherCreateJournal(Map<String, Object> param);
	
	int updateNewsCount(String id);
	int updateActivityCount(String id);
	int updateJournalCount(String id);
	
	List<com.sso.api.web.model.Baby> getMySpaceCover(Map<String, Object> param);
	
	List<HashMap<String, Object>> kidsPark();
	
	String[] getJournalsByID(String id);
	
	HashMap<String, Object> getRechargeDetail(String card_number);
	List<UserPackage> getCardDetail(String card_number);
}
